package com.edu.koTA07.XmlToBean;

import java.io.InputStream;

import com.edu.koTA07.XmlDataSet.DiskonXmlDataSet;
import com.edu.koTA07.takingOrder.R;
import com.edu.koTA07.utils.DiskonUtils;
import com.edu.koTA07.xmlreader.DiskonXMLtoDataSet;

import android.content.Context;

public class DiskonXmlSetToBean{	
    @SuppressWarnings("unused")
	private static final String TAG = null;
	DiskonXmlDataSet diskon = null;
	DiskonUtils util;
    
    public DiskonXmlSetToBean(Context context) {
    	super();
    	InputStream in = context.getResources().openRawResource(R.raw.diskon);
    	DiskonXMLtoDataSet diskonXMLtoBean = new DiskonXMLtoDataSet(in);
    	diskon = diskonXMLtoBean.getDiskonList();
		util = new DiskonUtils(context);
		util.onSaveDataFromXml(diskon);
    }

}   
